Skip to content

Conversation

@juslesan
Copy link
Contributor

@juslesan juslesan commented Oct 24, 2025

Summary

Moved exit handlers from the trackerless-network to the node package. This ensures that the operator nodes will still gracefully leave the network if the process is exited. Also removed the on unload event listener in NetworkStack. Users of the SDK are being made aware of the change by updating the SDK's README to include a section about properly cleaning up the Network node when the StreamrClient is no longer needed.

@juslesan juslesan requested review from ptesavol and teogeb October 24, 2025 12:16
@github-actions github-actions bot added network Related to Network Package node labels Oct 24, 2025
Copy link
Contributor

@teogeb teogeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be worth the effort to update the sdk's README to make sure that users are aware that they need to call StreamrClient#destroy always when shutting down the process.

Yes, let's add that

For browser nodes the graceful leaving on unload event is still kept in the trackerless-network. Alternatively the on unload event handler could be removed as well. If this is done the users must be made aware that they need to call NetworkNode#stop manually when a browser window is closed.

The StreamrClient#destroy() does that, right? So when we have the documentation, we can remove this functionality, too.

@github-actions github-actions bot added the sdk label Nov 19, 2025
@juslesan
Copy link
Contributor Author

So if I understood correctly do you @teogeb want to remove the clean up from the on unload events as well?

@teogeb
Copy link
Contributor

teogeb commented Nov 20, 2025

So if I understood correctly do you @teogeb want to remove the clean up from the on unload events as well?

Yes

@juslesan juslesan requested a review from teogeb November 21, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

network Related to Network Package node sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants